SQL for NoSQL Databases: Deja Vu (Part 2)

نویسنده

  • Christoph Bussler
چکیده

Providing a query interface for querying " schema-less " JSON documents using SQL as declarative query language [1] is finally gaining momentum (e.g. [4], [5]). The approach proposed in [2] called JSON SQL, however, represents an alternative approach as it adheres to the following principles: • extends the SQL 92 grammar ([3]) without changing the existing grammar rules, but by strictly adding new rules or extending existing rules • supports a syntax for specifying query results as documents or tables (!) with the results as documents precisely matching the stored documents' structure • defines a clear semantics based on the relational model • implements the complete set of JSON data types, including JSON true, JSON false and JSON null In JSON SQL no assumption is made about the JSON document structure except that it must comply with the JSON standard. Documents are grouped into collections (which imply neither a specific semantics nor specific constraints). A few examples are shown and explained next with more detail to be found in [2]: select {a, b} from exampleColl return a JSON document for each JSON document in exampleColl with properties " a " and/or " b " if present, if none is present, return the empty document select a, b from exampleColl return a table with two columns with the value of property " a " and/or the value of property " b " populated if present select {a AS a.b} from exampleColl project property " a " but relocate it to " a ". " b " in the result document select {a AS a.b.c, b AS a.b} from exampleColl illegal as " a ". " b " would remove " a ". " b ". " c " from the result select {*} from exampleColl where a.x.y = true return all documents completely where the value of property " a ". " x ". " y " is of literal JSON true select {*} from exampleColl where a = 'true' return all documents where the value of property " a " equals to String " true " select {*} from exampleColl where " true " < 'true' return all documents where the value of property " true " is less than the String " true ". select * from exampleColl where a.b = c.[3] return all properties as columns where the value of property " a ". " b " is …

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

SQL for NoSQL Databases: Déjà Vu

Existing relational database technology experience tells us that declarative database query languages are beneficial for different reasons, including application independence from access path considerations and decades of sophisticated query optimization technologies [2]. In context of most NoSQL databases, however, users are forced to implement complex query algorithms manually themselves usin...

متن کامل

An Approach of SQL to JSON Transformation For Handling Database Operations

Nowadays NOSQL databases are becoming more popular. Companies like Google, Facebook, and Amazon has created their own NOSQL databases based on their requirements. Different types of querying approaches are followed by different NOSQL databases, whereas traditional databases like MySQL, ORACLE, etc. follows SQL for querying. Most of the companies are shifting from traditional databases to NOSQL ...

متن کامل

No SQL, No Injection? Examining NoSQL Security

NoSQL data storage systems have become very popular due to their scalability and ease of use. This paper examines the maturity of security measures for NoSQL databases, addressing their new query and access mechanisms. For example the emergence of new query formats makes the old SQL injection techniques irrelevant, but are NoSQL databases immune to injection in general? The answer is NO. Here w...

متن کامل

Business Intelligence and Nosql Databases

NoSQL databases become more and more popular, not only in typical Internet applications. They allow to store large volumes of data (so called big data), while ensuring fast retrieving and fast appending. The main disadvantage of NoSQL databases is that they do not use relational model of data and usually do not offer any declarative query language similar to SQL. This raises the question how No...

متن کامل

NoSQL: A Database for Cloud Computing

With various advancements in the field of computing, scalability, resource utilization and power savings is being given higher priorities. NoSQL database and cloud computing goes hand in hand when compared with SQL databases. The main advantage of NoSQL databases is agility. The demand for NoSQL database is growing because most of the cloud applications built , demands high availability , speed...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2017